package team.archai.nexus.boot.auth.entity;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @description: jwt构造token参数
 * @author: lishibin
 * @create: 2020-07-12 00:46
 **/
@Getter
@Setter
@ToString
@Builder
public class JwtParam {

    /**
     * @Description: credential 认证凭据 密码
     * @Author: lishibin
     * @Date: 7/12/2020
     */
    private Object credential;

    /**
     * @program: JwtParam
     * @description: 账号
     * @author: lishibin
     * @create: 12:48 AM
     **/
    private String subject;

    /**
     * @program: JwtParam
     * @description: 过期时间 ms
     * @author: lishibin
     * @create: 12:48 AM
     **/
    private long exp;

    /**
    * @program: JwtParam
    * @description: 加密密钥
    * @author: lishibin
    * @create: 12:55 AM
    **/
    private String signKey;

    /**
    * @program: JwtParam
    * @description: 客户端初始化随机字符
    * @author: lishibin
    * @create: 20:11
    **/
    private String initialRandom;

    /**
    * @program: JwtParam
    * @description: 扩展信息
    * @author: lishibin
    * @create: 11:04
    **/
    private Object additional;
}
